
export const API_SYS_PLAT_CHANNEL_LIST = '/platform/sys/plat/list'
export const API_SYS_PLAT_CHANNEL_CREATE = '/platform/sys/plat/create'
export const API_SYS_PLAT_CHANNEL_DISABLED = '/platform/sys/plat/disabled'
export const API_SYS_PLAT_CHANNEL_GET = '/platform/sys/plat/get/'
export const API_SYS_PLAT_CHANNEL_DELETE = '/platform/sys/plat/delete/'
export const API_SYS_PLAT_CHANNEL_UPDATE = '/platform/sys/plat/update'

import request from '/@/utils/request'

export function getList(data: object) {
    return request({
        url: API_SYS_PLAT_CHANNEL_LIST,
        method: 'POST',
        params: data
    })
}
export function doCreate(data: object = {}) {
    return request({
        url: API_SYS_PLAT_CHANNEL_CREATE,
        method: 'POST',
        data: data
    })
}
export function doDisable(data: object = {}) {
    return request({
        url: API_SYS_PLAT_CHANNEL_DISABLED,
        method: 'POST',
        data: data
    })
}
export function doUpdate(data: object = {}) {
    return request({
        url: API_SYS_PLAT_CHANNEL_UPDATE,
        method: 'POST',
        data: data
    })
}
export function getInfo(id: string) {
    return request({
        url: API_SYS_PLAT_CHANNEL_GET + id,
        method: 'GET'
    })
}
export function doDelete(id: string) {
    return request({
        url: API_SYS_PLAT_CHANNEL_DELETE + id,
        method: 'DELETE'
    })
}
